<?php slot("ms","promotion.ls")?>
<h1><?php echo __('Lista de Promociones') ?></h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Content</th>
      <th>Status</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Slug</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($promotions as $promotion): ?>
    <tr>
      <td><a href="<?php echo url_for('promotion/show?id='.$promotion->getId()) ?>"><?php echo $promotion->getId() ?></a></td>
      <td><?php echo $promotion->getName() ?></td>
      <td><?php echo $promotion->getContent() ?></td>
      <td><?php echo $promotion->getStatus() ?></td>
      <td><?php echo $promotion->getCreatedAt() ?></td>
      <td><?php echo $promotion->getUpdatedAt() ?></td>
      <td><?php echo $promotion->getSlug() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('promotion/new') ?>">New</a>
